#pragma once

typedef void* tp_ExMalloc(int Size);
typedef void tp_ExFree(void* Ptr);

extern tp_ExMalloc* lpExMalloc;
extern tp_ExFree* lpExFree;

#ifdef _3DCOAT_DLL
inline void* _cdecl operator new(size_t size)
{
	return lpExMalloc((int)size);
};
inline void* _cdecl operator new[](size_t size)
{
	return lpExMalloc((int)size);
};
inline void __cdecl operator delete(void *ptr)
{
	lpExFree(ptr);
};
inline void __cdecl operator delete[](void *ptr)
{
	lpExFree(ptr);
};
#endif